﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Windows.Media.Imaging;

namespace Asteroids.Game.PowerUps
{
    class Shield : PowerUp
    {
        public Shield(Coordinate location) : base(location)
        {
            Img = new BitmapImage(new Uri(Path.GetDirectoryName(Application.ExecutablePath) + "/shield.jpg"));

            Type = PowerUpType.Shield;
            PowerUpProbability = 4;
        }

        public override void PerformAction(Player player)
        {
            player.CurrentShip.Shield += 1;
        }

        public override object Clone()
        {
            return new Shield(Location);
        }
    }
}
